

// local
#include "pblazecl.h"
#include "portidcl.h"



cl_port_id::cl_port_id(class cl_uc *auc) : cl_hw(auc, HW_PORT, 0, "port_id")
{
}

/*
int
cl_port::init(void)
{
  return(0);
}
*/

void
cl_port_id::set_cmd(class cl_cmdline *cmdline, class cl_console_base *con)
{
  class cl_cmd_arg *params[1]= { cmdline->param(0) };

  if (cmdline->syntax_match(uc, NUMBER))
    {
      value = params[0]->value.number;
    }
  else
    {
      con->dd_printf("set hardware port_id[%d] value\n                   Set port id value value\n", id);
    }
}

void
cl_port_id::print_info(class cl_console_base *con)
{
  con->dd_printf("Port ID value: %d\n", value);
}

